import { Rectangle } from './Rectangle'

export class Sky extends Rectangle {
  /**
   * sky实例的dom元素
   * @param {*} dom 
   */
  constructor(dom) {
    super(1600,800,0,0,-50,0,dom)
  }

  onMove() {
    if (this.x <= -800) {
      this.x = 0
    }
  }
}